<?php
session_start();
include "../public/common/config.php";
$weibo_id = $_POST['weibo_id'];
$content = $_POST['content'];
$user_id = $_SESSION['home_userid'];
$create_time = time();

	
$sql = "insert into comment(content,create_time,user_id,weibo_id) values('{$content}','{$create_time}','{$user_id}','{$weibo_id}')";
if(mysql_query($sql)){
	echo "<script>location='../comment.php?weibo_id={$weibo_id}'</script>";
}
?>